/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package leilao;

/**
 *
 * @author Camila
 */
public class LanceDAO extends Banco {

    private ConnCliente req = new ConnCliente();

    public void setAdicionaLance(String nomeCliente, int nLeilao, String valor) {
        req.setMsgCliente("@SET *lance* $" + nLeilao + "$" + nomeCliente + "$" + Float.parseFloat(valor));
        req.enviaMsg();
    }

    private String buscaIdLeilao() {
        req.setMsgCliente("@GET !leiloes!");
        req.enviaMsg();
        return req.getResponseLine();
    }
}
